<%@page import="fun.wlfj.vo.User"%>
<%@page import="fun.wlfj.vo.Product"%>
<%@page import="fun.wlfj.factory.CashSystemFactory"%>
<%@page import="fun.wlfj.vo.PayList"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<% String which = "退费处理"; %>
<%@ include file="/header.jsp"%>
<!-- CONTENT -->
<section id="content">
	<div class="page dashboard-page">
		<!-- bradcome -->
		<!-- row -->
		<section class="boxs">
			<div class="boxs-header">
				<h3 class="custom-font hb-blue">
					<strong>退费处理 </strong>请注意核对金额及药品
				</h3>

			</div>
			<div class="boxs-body p-0">
				<table class="table table-hover">
					<thead>
						<tr>
							<th>#</th>
							<th>处方单号</th>
							<th>支付金额</th>
							<th>处方生成日期</th>
							<th>成功支付日期</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
					<%
					List<PayList> pl1 = CashSystemFactory.getPayListDao(null).getPayLists(2);
					int cnt = 1;
					session.setAttribute("FakeUser", (Object)(new User(0, "", "", "", "")));
					for(PayList l : pl1){
					%>
						<tr>
							<td><%=cnt ++ %></td>
							<td><%=String.format("PL%06d", l.getPayListID()) %></td>
							<td><%=l.getPayCash() %>¥</td>
							<td><%=CashSystemFactory.getPayBackDao().getPayBackByID(l.getPayListID()).getPayDate() %></td>
							<td><%=l.getPayDate() %></td>
							<td><a
								href="payListInfo?PayListID=<%=l.getPayListID()%>&from=canclePay_admin"
								class="btn btn-raised btn-info">详情</a>
								<a href="canclePay?PayListID=<%=l.getPayListID() %>" class="btn btn-raised btn-danger">退费</a></td>
						</tr>
						<%} %>
						
					</tbody>
				</table>
			</div>
		</section>
		<%@ include file="PayListInfoFooter.jsp"%>
	</div>
</section>
<%@ include file="/footer.jsp"%>